#include <stdio.h>
#include <syscall.h>

int main(int argc UNUSED, char * argv[] UNUSED)
{
	char buf[] = "test2 test2 test2 test2";
	int file_self = open("deny_c");
	int written = write(file_self, buf, 30);
	if(written==-1)
	{
		printf("Child : can't write\n");
		return -1;
	}
	else
	{

		printf("Child : Write success %d bytes\n",written);
		return 0;
	}
}
